package com.zuche.data;

public enum enums {
    OK(200,"操作成功"),//成功
    OK_UPDATE(200,"修改成功"),//成功
    OK_DELETE(200,"删除成功"),//成功
    OK_ADD(200,"增加成功"),//成功


    ER(400,"操作失败"),//失败
    ER_UPDATE(400,"修改失败"),//失败
    ER_DELETE(400,"删除失败"),//失败
    ER_ADD(400,"增加失败"),//失败


    NO_LOGIN(10001,"未登录"),//未登录

    USER_NULL(0000,"meiy"),
    PWD_ER(10002,"密码错误"),//密码错误
    NO_NAME(10003,"用户不存在"),
    USER_freeze(10004,"账户冻结"),
    MULTI_USE(10006,"用户名已存在"),
    suspend_an_account(10007,"账号冻结"),
    suspend_OK(10008,"审核已通过"),
    suspend_NO(10009,"审核未通过"),



    MO_PERMS(3000,"没有权限"),//没有权限
    NO_URL(30001,"未找到路径"),
    PARAMETER_ERROR(30002,"参数异常"),

    NO_SHOP(60001,"商品已售空"),
    NO_BYSHOP(60002,"商品未出售"),
    NOT_PRODUCT(60003,"商品不存在"),
    FEGIN_FALLBACK(819,"微服务调用失败");

    private Integer dataCode;
    private String dataMassage;


    enums() {
    }

    enums(Integer dataCode, String dataMassage) {
        this.dataCode = dataCode;
        this.dataMassage = dataMassage;
    }

    public Integer getDataCode() {
        return dataCode;
    }

    public void setDataCode(Integer dataCode) {
        this.dataCode = dataCode;
    }

    public String getDataMassage() {
        return dataMassage;
    }

    public void setDataMassage(String dataMassage) {
        this.dataMassage = dataMassage;
    }
}
